<!DOCTYPE html>
<html lang="zh-CN" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>管理员-图书管理系统</title>
    <link href="/layui/css/layui.css" rel="stylesheet"/>

</head>
<div class="layui-layout layui-layout-admin">

    <div th:include="common/admin_header :: header"></div>

    <div class="layui-side layui-bg-black">
        <div class="layui-side-scroll">
            <!-- 左侧导航区域（可配合layui已有的垂直导航） -->
            <ul class="layui-nav layui-nav-tree">

                <li class="layui-nav-item ">
                    <a class="" href="javascript:;">书籍管理</a>
                    <dl class="layui-nav-child">
                        <dd><a href="/addBookPage">&emsp;&emsp;录入新书</a></dd>
                        <dd><a href="/addCategoryPage?pageNum=1">&emsp;&emsp;新建类别</a></dd>
                        <dd><a href="/showBooksPage">&emsp;&emsp;查询书籍</a></dd>
                    </dl>
                </li>

                <li class="layui-nav-item ">
                    <a class="" href="javascript:;">用户管理</a>
                    <dl class="layui-nav-child">
                        <dd><a href="/showUsersPage?pageNum=1">&emsp;&emsp;查询用户</a></dd>
                        <dd><a href="/addUserPage">&emsp;&emsp;新增用户</a></dd>
                        <dd><a href="/addAdmin">&emsp;&emsp;新增管理员</a></dd>
                    </dl>
                </li>

                <li class="layui-nav-item  layui-nav-itemed">
                    <a class="" href="javascript:;">借阅信息</a>
                    <dl class="layui-nav-child">
                        <dd><a href="/allBorrowBooksRecordPage?pageNum=1">&emsp;&emsp;所有记录</a></dd>
                        <dd  class="layui-this"><a href="/appointBookAll">&emsp;&emsp;预约记录</a></dd>
                    </dl>
                </li>

                <li class="layui-nav-item"><a href="/adminInfoPage">个人信息</a></li>
                <li class="layui-nav-item layui-nav-itemed"><a class="" href="/adminMessage">留言板</a></li>
            </ul>
        </div>
    </div>

    <div class="layui-body">

        <div class="layui-container">
            <hr class="layui-bg-blue">
            <h3 style="text-align: center; font-size: xx-large"> 预 约 书 籍</h3>
            <hr class="layui-bg-blue">
            <table class="layui-table ">
                <thead>
                <tr>
                    <th>书籍编号</th>
                    <th>书名</th>
                    <th>作者</th>
                    <th>出版社</th>
                    <th>预约时间</th>
                    <th>取消预约</th>
                </tr>
                </thead>

                <tr th:each="book : ${bookList}">
                    <td><label th:text="${book.getBookId()}"></label></td>
                    <td><label th:text="${book.getBookName()}"></label></td>
                    <td><label th:text="${book.getBookAuthor()}"></label></td>
                    <td><label th:text="${book.getBookPublish()}"></label></td>
                    <td><label th:text="${book.getDate()}"></label></td>
                    <td>
                        <button class="layui-btn layui-btn-sm layui-btn-danger del_btn" th:value="${book.getBookId()}">取消
                        </button>
                    </td>

                </tr>
            </table>
        </div>

        <div id="window" title="取消预约" style="margin: 5%; display: none">
            <form id="updateForm" class="layui-form">
                <div class="layui-form-item">
                    <label><h2>请确认是否取消？</h2></label>
                </div>
            </form>
        </div>
    </div>


    <div th:include="common/footer :: footer"></div>

</div>

<script src="/scripts/jquery.min.js"></script>
<script src="/layui/layui.js"></script>
<script src="/scripts/admin/appointBook.js"></script>

</body>
</html>
